gtktextlayout: fix to quiet a warning
authorSebastien Lafargue <slafargue@gnome.org>
Thu, 18 Dec 2014 20:00:45 +0000 (21:00 +0100)
committerSebastien Lafargue <slafargue@gnome.org>
Thu, 18 Dec 2014 20:00:45 +0000 (21:00 +0100)
Gcc complains about a possible use of a not initialised
widget ref ( which can't happen in reality )

https://bugzilla.gnome.org/show_bug.cgi?id=741702

gtk/gtktextlayout.c

index 55a0e1254bf4770d5af6153713c0d9bf62ca3882..da3a0e8de2dbbb64ccc362779c1a13db38761604 100644 (file)
@@ -1640,7 +1640,7 @@ add_child_attrs (GtkTextLayout      *layout,
   PangoRectangle logical_rect;
   gint width, height;
   GSList *tmp_list;
-  GtkWidget *widget;
+  GtkWidget *widget = NULL;
 
   width = 1;
   height = 1;